package com.yc.boot.train.model.save;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * Create with IntelliT IDEA
 *
 * @Author: zhengmingzhe
 * @Date: 2022/01/04/14:49
 * @Description:   添加分数管理实体类
 */
@Data
@Accessors(chain = true)
@ApiModel("添加分数管理模型")
public class SaveGradeManage {

    @ApiModelProperty(value = "课程ID", required = true)
    private Long id;

//    @NotBlank
//    @ApiModelProperty(value = "课程名", required = true)
//    private String courseName;

    @NotBlank
    @ApiModelProperty(value = "员工名字", required = true)
    private String userName;

    @NotNull
    @ApiModelProperty(value = "员工分数", required = true)
    private Integer grade;

    @NotBlank
    @ApiModelProperty(value = "教员评语", required = true)
    private String comment;
}
